Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • twoway, label | tick properties

    Good morning,
    I a trying to run the following command for seeing the trend in multiple sub-samples:
    Code:
    twoway   (lfit WORK_avarage Time if TREAT == 0 & FEMALE == 1)(lfit WORK_avarage Time if TREAT == 1 & FEMALE == 1) (lfit WORK_avarage Time if TREAT == 0 & FEMALE == 0)(lfit WORK_avarage Time if TREAT == 1 & FEMALE == 0), by(school)
    The command work, but once run it I cannot distinguish to which sub-sample each line belongs because they are all labelled 'fitted value'. There is an option that I can enter to have a distinction ? (like i was thinking to give a title|label in each intra-parenthesis line... is it possible?

    Many thanks in advance for your time

  • #2
    Consider this similar problem (in the absence of a data example)

    Code:
    sysuse auto, clear
    
    twoway lfit mpg weight if rep78 <= 3 || lfit mpg weight if rep78 >3 , by(foreign) legend(order(1 "Record <= 3" 2 "Record 3 or 4"))

    Comment


    • #3
      Thank you very much exactly what I needed!!!

      Comment

      Working...
      X